"use strict";
Page({
    data: {
        TabCur: 0,
        scrollLeft: 0,
        navlist: ['全部', '处理中', '已同意', '已完成'],
        navbarActiveIndex: 0,
        items: [1, 2, 3, 4],
        height: '',
        widHeight: ''
    },
    onBindAnimationFinish: function (e) {
        console.log(e);
        this.setData({
            navbarActiveIndex: e.detail.current,
            TabCur: e.detail.current,
            scrollLeft: (e.detail.current - 1) * 60
        });
    },
    tabSelect: function (e) {
        console.log('========', e.currentTarget.dataset.id);
        this.setData({
            TabCur: e.currentTarget.dataset.id,
            scrollLeft: (e.currentTarget.dataset.id - 1) * 60,
            navbarActiveIndex: e.currentTarget.dataset.id
        });
    },
    onLoad: function (options) {
        var that = this;
        var query = wx.createSelectorQuery();
        query.select('.gordr_item_box').boundingClientRect(function (rect) {
            console.log(rect.height, '=======');
            that.setData({
                widHeight: rect.height * 1 + 30 + "px"
            });
        }).exec();
    },
    onReady: function () {
    },
    onShow: function () {
    },
    onHide: function () {
    },
    onUnload: function () {
    },
    onPullDownRefresh: function () {
    },
    onReachBottom: function () {
    },
    onShareAppMessage: function () {
    }
});
